import request from '@/utils/request'

// 查询fileUpload列表
export function listVideoFolder(query) {
  return request({
    url: '/video-distribute/list',
    method: 'get',
    params: query
  })
}

// 查询fileUpload详细
export function getVideo(id) {
  return request({
    url: '/video-distribute/' + id,
    method: 'get'
  })
}

// 新增fileUpload
export function addVideo(data) {
  return request({
    url: '/video-distribute',
    method: 'post',
    data: data
  })
}

// 修改fileUpload
export function updateVideo(data) {
  return request({
    url: '/video-distribute',
    method: 'put',
    data: data
  })
}
